package p.ithorns.framework.core.model;

import lombok.*;
import lombok.experimental.SuperBuilder;

/**
 * FileUploadResp
 * <p>
 * 文件上传响应结果
 * 图片类型会有缩略图
 *
 * @author liuhaitao
 * @version 1.0
 * @date 2022/3/5 9:30
 */
@Getter
@Setter
@SuperBuilder
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class ImageUploadResp extends FileUploadResp {

    /**
     * 缩略图访问地址，仅图片类型有效
     */
    private String thumbUri;

    @Override
    public String toString() {
        return "{" +
                "name:'" + name + '\'' +
                ", size:" + size +
                ", fileUri:'" + fileUri + '\'' +
                ", thumbUri:'" + thumbUri + '\'' +
                "}";
    }

}
